public class SimpleFrame_with_Reflection {
    public static void main(String[] args) throws Exception {
        // 创建狗对象
        Dog dog = new Dog("旺财", 5);
        SaveObjectFrame.saveObject(dog);

        // 创建一系列学生对象
        Student s1 = new Student("小明", 18,"提问");
        SaveObjectFrame.saveObject(s1);

        // 创建老师对象
        Teacher t1 = new Teacher("小王", 18, "提问", 5000, "软件工程", '男', "123456");
        SaveObjectFrame.saveObject(t1);
    }
}
